<template>
	<view>
		<!-- <h1>hhhh</h1>
		<h2>token: {{ tokens }}</h2>
		<h2>longitude:{{ longitude }}</h2>
		<h2>latitude:{{ latitude }}</h2> -->
	</view>
</template>

<script>
export default {
	data() {
		return {
			tokens: '我没收到token啊啊啊啊',
			longitude: 'longitude~~~~',
			latitude: 'latitude~~~'
		};
	},
	onLoad(e) {
		uni.clearStorageSync();
		if (e.token != undefined && e.token != '') {
			uni.setStorageSync('token', e.token);
			this.tokens = e.token;
			this.longitude = e.longitude;
			this.latitude = e.latitude;
			uni.setStorageSync('longitude', e.longitude);
			uni.setStorageSync('latitude', e.latitude);
		}
		uni.reLaunch({
			url: '../index/index'
		});
	}
};
</script>

<style></style>
